home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / lib / mntlib44.zoo / mntlib / crlf / crlf.doc < prev    next >
Encoding:
Text File  |  1994-01-16  |  1.4 KB  |  38 lines

  1. crlf.c by entropy@terminator.rs.itd.umich.edu
  2.  
  3. PUBLIC DOMAIN -- NO RIGHTS RESERVED
  4.  
  5. usage:  crlf -s [file [...]] (to strip carriage returns)
  6.         crlf -a [file [...]] (to add carriage returns)
  7.  
  8. crlf converts text files between TOS (MS-DOS) and UNIX style line
  9. terminators.
  10.  
  11. With the -s option, it strips all carriage returns from the specified files.
  12.  
  13. With the -a option, it adds carriage returns before each line feed in a
  14. file.  Be careful that you do not run this twice on the same file (or at all
  15. on a file that already has carriage returns) as you will end up with really
  16. strange line terminators that way (recover by stripping and re-adding
  17. returns).
  18.  
  19. If no file is specified the input is read from `stdin' and put to `stdout'.
  20. So you can use it as filter in a pipe.
  21.  
  22. If any errors/warnings occur while trying to convert a file, an error status
  23. will be returned to the OS when the program exits.  If you are running from
  24. a Makefile and know there will be errors (e.g. "crlf -s *" in a directory
  25. that contains subdirectories) you should ignore the return status (e.g.
  26. "-crlf -s *" in a Makefile).
  27.  
  28. The program attempts to preserve the timestamp of the original file.  If it
  29. is unable to do so it will continue to convert the file but will return an
  30. error status to the OS.
  31.  
  32. crlf does NOT recursively convert subdirectories as of yet.
  33.  
  34. The program is 16/32 bit clean.
  35.  
  36. Enjoy,
  37. entropy
  38.